package com.bw.z.mvp.view.people;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;

import com.bw.z.R;
import com.flyco.tablayout.SlidingTabLayout;

public class AuthorActivity extends AppCompatActivity implements View.OnClickListener {

    private SlidingTabLayout authorSlidTab;
    private ViewPager vpPage;
    private ImageView authorBack;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_author);
        initView();
    }

    private void initView() {
        authorSlidTab = (SlidingTabLayout) findViewById(R.id.author_slid_tab);
        vpPage = (ViewPager) findViewById(R.id.vp_page);
        authorBack = (ImageView) findViewById(R.id.author_back);
        authorBack.setOnClickListener(this::onClick);
    }

    @Override
    public void onClick(View v) {
        finish();
    }
}